from typing import List
from pydantic import BaseModel


class Product(BaseModel):
    id: int
    name: str
    category: str
    price: float
    tags: List[str]


class User(BaseModel):
    username: str
    purchased_product_ids: List[int]
   
